package lanou3g.myfirstapp36kr.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

import lanou3g.myfirstapp36kr.fragment.MyOrderViewPagerFragment;

/**
 * Created by dllo on 16/8/19.
 */
public class MyOrderAdapter extends FragmentPagerAdapter {
    private String[] titles = {"全部","待付款","已付款"};
    public MyOrderAdapter(FragmentManager fm) {
        super(fm);
    }



    @Override
    public Fragment getItem(int position) {
        return MyOrderViewPagerFragment.newInstance(position);
    }

    @Override
    public int getCount() {
        return titles.length;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return titles[position];
    }
}
